package ar.fiuba.tp7552.buildadmin.util;

import java.util.Collection;
import java.util.List;

public class Cast {

	@SuppressWarnings("all")
	public static <T> Collection<T> collection(Class<T> clazz, Collection<?> collection) {
		return (Collection<T>) collection;
	}
	
	@SuppressWarnings("all")
	public static <T> List<T> list(Class<T> clazz, List<?> list) {
		return (List<T>) list;
	}
	
	@SuppressWarnings("all")
    public static Enum getValorEnum(Class clase, String valor) {
        return valor != null ? Enum.valueOf(clase, valor) : null;
    }
	
}
